home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 November / PCWorld_2006-11_cd.bin / system / innosetup / isetup-5.1.8.exe / {app} / Examples / 64BitThreeArch.iss (.txt) < prev    next >
Encoding:
Inno Setup Script  |  2006-10-03  |  1.6 KB  |  39 lines

  1. ; -- 64BitThreeArch.iss --
  2. ; Demonstrates how to install a program built for three different
  3. ; architectures (x86, x64, Itanium) using a single installer.
  4. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!
  5. [Setup]
  6. AppName=My Program
  7. AppVerName=My Program version 1.5
  8. DefaultDirName={pf}\My Program
  9. DefaultGroupName=My Program
  10. UninstallDisplayIcon={app}\MyProg.exe
  11. Compression=lzma
  12. SolidCompression=yes
  13. OutputDir=userdocs:Inno Setup Examples Output
  14. ; "ArchitecturesInstallIn64BitMode=x64 ia64" requests that the install
  15. ; be done in "64-bit mode" on x64 & Itanium, meaning it should use the
  16. ; native 64-bit Program Files directory and the 64-bit view of the
  17. ; registry. On all other architectures it will install in "32-bit mode".
  18. ArchitecturesInstallIn64BitMode=x64 ia64
  19. [Files]
  20. ; Install MyProg-x64.exe if running on x64, MyProg-IA64.exe if
  21. ; running on Itanium, MyProg.exe otherwise.
  22. Source: "MyProg-x64.exe"; DestDir: "{app}"; DestName: "MyProg.exe"; Check: IsX64
  23. Source: "MyProg-IA64.exe"; DestDir: "{app}"; DestName: "MyProg.exe"; Check: IsIA64
  24. Source: "MyProg.exe"; DestDir: "{app}"; Check: IsOtherArch
  25. Source: "MyProg.chm"; DestDir: "{app}"
  26. Source: "Readme.txt"; DestDir: "{app}"; Flags: isreadme
  27. [Icons]
  28. Name: "{group}\My Program"; Filename: "{app}\MyProg.exe"
  29. [Code]
  30. function IsX64: Boolean;
  31. begin
  32.   Result := Is64BitInstallMode and (ProcessorArchitecture = paX64);
  33. function IsIA64: Boolean;
  34. begin
  35.   Result := Is64BitInstallMode and (ProcessorArchitecture = paIA64);
  36. function IsOtherArch: Boolean;
  37. begin
  38.   Result := not IsX64 and not IsIA64;
  39.